{% extends 'index.html' %}
{% block pg-content %}
    <form class="form-horizontal" role="form" method="post">
        {% csrf_token %}
        <div class="form-group">
            <label for="" class="col-lg-2 control-label">客户</label>
            <div class="col-md-4 col-sm-4" style="margin-top: 5px">{{ customer_obj.name }}</div>
        </div>
        {% for field in form_obj %}
            <div class="form-group">
                <label for="" class="col-lg-2 control-label">{{ field.label }}</label>
                <div class="col-md-4 col-sm-4">
                    {{ field }}
                </div>
            </div>
        {% endfor %}
            <div class="form-group">
                <button type="submit" class="btn btn-success col-lg-offset-5" style="margin-right: 5px">下一步</button>
            </div>
    </form>
    <div class="col-lg-offset-2" style="color: red">{{ form_obj.non_field_errors.0 }}</div>
    <div class="col-lg-offset-2" >{{ msg }}</div>
{% endblock %}